package org.linlinjava.litemall.wx.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfig {
    private static final Logger logger = LoggerFactory.getLogger(WebSocketConfig.class);

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        logger.info("🔌 正在注册WebSocket ServerEndpointExporter...");
        ServerEndpointExporter exporter = new ServerEndpointExporter();
        logger.info("✅ WebSocket ServerEndpointExporter注册完成！");
        return exporter;
    }
}